/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.lardocelar.core;

/**
 *
 * @author Leandro
 */
public class Servidor {
    private String macAddress;
    private byte[] ipAddress;
    private int porta;

    /**
     * @return the macAddress
     */
    public String getMacAddress() {
        return macAddress;
    }

    /**
     * @param macAddress the macAddress to set
     */
    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }

    /**
     * @return the ipAddress
     */
    public byte[] getIpAddress() {
        return ipAddress;
    }

    /**
     * @param ipAddress the ipAddress to set
     */
    public void setIpAddress(byte[] ipAddress) {
        this.ipAddress = ipAddress;
    }

    /**
     * @return the porta
     */
    public int getPorta() {
        return porta;
    }

    /**
     * @param porta the porta to set
     */
    public void setPorta(int porta) {
        this.porta = porta;
    }
    
    public static Servidor Carregar(byte[] ip, int port){
        //TODO:carregar da base
        Servidor servidor = new Servidor();
        servidor.setIpAddress(ip);
        servidor.setPorta(port);
        return servidor;
    }
}
